/********************************************************************
	created:	2012/01/05
	created:	5:1:2012   14:31
	filename: 	f:\Hg-Project\WS_Library\WS_Template\Singleton.h
	file path:	f:\Hg-Project\WS_Library\WS_Template
	file base:	Singleton
	file ext:	h
	author:		Daywei
	Copyright:  Wit-Shine (C) 2012 All Rights Reserved
	
	purpose:	
	reference:  http://www.cppblog.com/dyj057/archive/2005/09/20/346.html
	            http://www.cnblogs.com/hujian/archive/2010/12/15/1906503.html
	update:		
	remark:		
*********************************************************************/

template<class type>
class Singleton 
{ 
public:   
	static type *GetInstance() 
	{ 
	   static type s_single;
	   return &s_single; 
	} 
protected:
	Singleton(){}
	~Singleton(){}
	Singleton(const Singleton<type>&){}
	Singleton<type>& operator=(const Singleton<type>& ){}
};

